$(function(){	
	var title="星昊商城";
	var url=window.location.href;
	var image=window.location.origin+$("#qrcode").attr('src');
	$('#background').css('height', $(window).height() - 44);
		
	if (/(applewebkitapp)/i.test(navigator.userAgent)) {
		 document.querySelector('#background').onclick = function () {
			 window.location = 'js-call:weixin_share:'+ encodeURIComponent(JSON.stringify({title : title,url : url,image : image}));
		 }
	} else if (/(androidapp)/i.test(navigator.userAgent)) {
	 	document.querySelector('#background').onclick = function () {
	 		window.Weixin.weixin_share(title,url,image);
		 }
	} else {
		
	}
})
